<script>
    let arr = [{ label: '男', value: 1 }, { label: '女', value: 0 }]

    function f(arr) {
        // 写代码，得到
        let newArr = []
         arr.map(item => {
        //  console.log(item)
         newArr.push(item.label)
        })
        // console.log(newArr)
        return  newArr
    }
    let arr2 = f(arr);
    console.log(arr2)
// arr2 = ['男', '女']
</script>